<%@ page contentType="text/html;charset=utf-8" isELIgnored="false"%>
<%@ taglib prefix="cw" uri="/widget-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
		<title>灵活就业人员参保登记</title>
		<jsp:include page="nocache.jsp"></jsp:include>
        <cw:base/>
        <script type="text/javascript">
       
		function selectPerson(combo,record,index){
				var form = Ext.getCmp('form1');
				form.load({
					url:'person.json',
					params: {aac001: record.get('aac001')},
					waitMsg:'载入数据中...',
					success: function(form,action){
						Ext.getCmp('button_submit').enable();
					}
				});
		}		  
		  
        </script>
        
 </head>
  
  <body>
        <div align="left"><jsp:include
				page="personSelect.jsp"></jsp:include>
		</div>
		
			<cw:form id="form1" url="success.json" waitMsg="提交中，请稍候...">	
			
			<cw:fieldSet title="个人基本信息" content="personinfoshow" collapsible="true">
			</cw:fieldSet>
			<cw:fieldSet title="业务办理信息" content="operateInfo" collapsible="true">
			</cw:fieldSet>
			<cw:fieldSet title="参保险种信息" content="insureInfo" collapsible="true">
			</cw:fieldSet>
		
		
		<div id="personinfoshow">
			<%@ include file="personInfo.jsp"%>
		</div>
		
		
		<div id="operateInfo">	
			<%@ include file="infoInput.jsp"%>
		</div>
		
		<div id="insureInfo">
					<cw:editGrid url="personInsu.json" width="900" height="150" id="personInsuGrid"
				      exportable="false" enablePage="true" selectMode="checkbox"  title="参保险种信息">	
				  
						<cw:indexColumn></cw:indexColumn>
						<cw:gridColumn property="aae140" width="100" title="险种类型" editable="false">
							<cw:text property="aae140"></cw:text>
						</cw:gridColumn>
						<cw:gridColumn property="ajc050" width="100" title="参保日期" editable="true">
							<cw:text property="ajc050"></cw:text>
						</cw:gridColumn>
						<cw:gridColumn property="aaz289" width="150" title="征缴规则" editable="true">
							<cw:text property="aaz289"></cw:text>
						</cw:gridColumn>
						<cw:gridColumn property="aaa042" width="150" title="单位缴纳比例" editable="false">
							<cw:text property="aaa042"></cw:text>
						</cw:gridColumn>
						<cw:gridColumn  property="aaa041" width="150" title="个人缴纳比例" editable="false">
							<cw:text property="aaa041"></cw:text>
						</cw:gridColumn>
						<cw:gridColumn property="aae022" width="150" title="个人应缴金额" editable="false">
							<cw:text property="aae022"></cw:text>
						</cw:gridColumn>
	                </cw:editGrid>
		</div>

			<div align="center">
				<table>
					<COLGROUP>
						<COL width='25%' align="center">
						<COL width='25%' align="center">
						<COL width='25%' align="center">
						<COL width='25%' align="center">

					</COLGROUP>

					<tr height="23">
						<td>
							<cw:formButton id="button_submit" actionType="submit"
								formId="form1" text="提交"></cw:formButton>
						</td>
						<td>
							<cw:formButton id="button_reset" actionType="reset"
								formId="form1" text="重置"></cw:formButton>
						</td>

					</tr>

				</table>
			</div>

		</cw:form>    
  </body>
  <script type="text/javascript"> 
   Ext.onReady(function(){
    Ext.getCmp('ajc050').setValue(new Date());
   }
   );
  </script>
  <cw:theme></cw:theme>
</html>
